//#include"mystring.hpp"
#include<string>
#include <iostream>
using namespace std;
int main()
{
    //xzq::test();
    string s("hello bit");
    string::reverse_iterator it = s.rbegin();
    while(it != s.rend())
    {
        cout<<*it;
        ++it;
    }
    cout<<endl;
    return 0;
}